<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	
	<?php require('scripts/header.php'); ?>
	
	<script type="text/javascript" src="http://seadragon.com/ajax/0.8/seadragon-min.js"></script>
	<script type="text/javascript" src="scripts/scroller.js"></script>
	<script type="text/javascript" src="scripts/viewer.js"></script>
	<script type="text/javascript" src="scripts/db.js"></script>
	<?php
		include 'scripts/viewer.php';
		
		if($_SERVER['REQUEST_METHOD'] == 'GET')
			$stitchid = $_GET{'stitchid'};
			
		if(is_null($stitchid)) $stitchid = 1;
		
		echo "<script type=\"text/javascript\">
		var stitchid = $stitchid;
	</script>";
		
	?>
	
</head>

<body onload="loadSpinner( <?php echo $stitchid ?> )">
	
	<?php require('scripts/body_top.php'); ?>
	
	<div class="content">
  
		<div id="container" src="http://www.srcf.ucam.org/cshotel/stitched/<?php echo $stitchid ?>.xml"></div><br />
		<div id="spinner" style="text-align:center;"></div>
		
	</div>
  
	<?php require('scripts/body_foot.php'); ?>

</body>
</html>
